package com.xy.dp.strategy;

public class Context {
    private IStrategy strategy;

    public Context() {

    }

    public Context(IStrategy strategy) {
        this.strategy = strategy;
    }

    public void fighting() {
        strategy.fighting();
    }

    public IStrategy getStrategy() {
        return strategy;
    }

    public void setStrategy(IStrategy strategy) {
        this.strategy = strategy;
    }
}
